#ifndef __I2CLANG_H
#define __I2CLANG_H

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <errno.h>


#define OP_NONE     0x0     
#define OP_WRITE    0x1
#define OP_READ     0x2
#define OP_READALL  0x3
#define OP_BUS      0x4
#define OP_ADDR     0x5

#define MAX_OP_STACK 100

typedef struct op {
	uint8_t op;
	uint8_t val;
	uint16_t size;
	uint8_t *data;
} op;

op* i2clang( int, char** );


#endif
